package JDBC.Day05;

/**
 *  定义一个 Student 的JavaBean类
 *  用来封装对象数据
 */
public class Student {
    private int id;
    private String name;
    private String gender;
    private String birthday;
    private String insert_time;
    private String address;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getInsert_time() {
        return insert_time;
    }

    public void setInsert_time(String insert_time) {
        this.insert_time = insert_time;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "{" +
                "id=" + id +
                ", 姓名=" + name +
                ", 性别=" + gender +
                ", 生日=" + birthday +
                ", 加入时间=" + insert_time +
                ", 地址=" + address +
                '}';
    }
}
